package DataModel
{
	public class CaseActions
	{
		//
		// Key fields
		//
		public var m_ID:String;
		public var m_CaseNumber:int;
		//
		// Data Fields
		//
 		public var m_OfficialResponsible:String;
		public var m_Outcome:String;
		public var m_ActionTaken:String;
		public var m_Date:Date;
		public var m_CreatedBy:String;
		public var m_CreatedDate:Date;
		public var m_ModifiedBy:String;
		public var m_hasChangedAction:Boolean;
		

		public function CaseActions(	OfficialResponsible:String,
										ID:String,
										Outcome:String, 
										ActionTaken:String,
										DateNewAction:Date,
										CaseNumber:int,
										CreatedBy:String,
										CreatedDate:Date,
										ModifiedBy:String,
										hasChangedAction:Boolean):void

		{
			m_OfficialResponsible = OfficialResponsible;
			m_ID = ID;
			m_Outcome = Outcome;
			m_ActionTaken = ActionTaken;
			m_Date = DateNewAction;
			m_CaseNumber = CaseNumber;
			m_CreatedBy = CreatedBy;
			m_CreatedDate = CreatedDate;
			m_ModifiedBy = ModifiedBy;
			m_hasChangedAction = hasChangedAction;
			
		}
		
		public function get ModifiedBy():String
		{
			return m_ModifiedBy;
		}
		
		public function set ModifiedBy(strVal:String):void
		{
			m_ModifiedBy = strVal;
			SkillsAuditDocument.instance.dirtyForm = true;
		}
		
		public function get CreatedDate():Date
		{
			return m_CreatedDate;
		}
		
		public function set CreatedDate(dateVal:Date):void
		{
			m_CreatedDate = dateVal;
			SkillsAuditDocument.instance.dirtyForm = true;
		}
		
		public function get CreatedBy():String
		{
			return m_CreatedBy;
		}
		
		public function set CreatedBy(strVal:String):void
		{
			m_CreatedBy = strVal;
			SkillsAuditDocument.instance.dirtyForm = true;
		}
		
		public function get CaseNumber():int
		{
			return m_CaseNumber;
		}
		
		public function set CaseNumber(intVal:int):void
		{
			m_CaseNumber = intVal;
			SkillsAuditDocument.instance.dirtyForm = true;
		}
		
		public function get ID():String
		{
			if (m_ID == null)
			{
				return "0";
			}
			return m_ID;
		}
		
		public function set ID(strVal:String):void
		{
			m_ID = strVal;
			SkillsAuditDocument.instance.dirtyForm = true;
		}
		
		public function get OfficialResponsible():String
		{
			return m_OfficialResponsible;
		}
		
		public function set OfficialResponsible(strVal:String):void
		{
			m_OfficialResponsible = strVal;
			SkillsAuditDocument.instance.dirtyForm = true;
		}

		public function get Outcome():String
		{
			return m_Outcome;
		}
		
		public function set Outcome(strVal:String):void
		{
			m_Outcome = strVal;
			SkillsAuditDocument.instance.dirtyForm = true;
		}

		
		public function get ActionTaken():String
		{
			return m_ActionTaken;
		}
		
		public function set ActionTaken(strVal:String):void
		{
			m_ActionTaken = strVal;
			SkillsAuditDocument.instance.dirtyForm = true;
		}
		public function get DateNewAction():Date
		{
			return m_Date;
		}
		
		public function set DateNewAction(dateVal:Date):void
		{
			m_Date = dateVal;
			SkillsAuditDocument.instance.dirtyForm = true;
		}
		
		public function get hasChangedAction():Boolean
		{
			return m_hasChangedAction;
		}
		
		public function set hasChangedAction(boolVal:Boolean):void
		{
			m_hasChangedAction = boolVal;
			SkillsAuditDocument.instance.dirtyForm = true;
		}
	}
}